import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
@Entity("houseinfo")
export class HouseEntity {
    @PrimaryGeneratedColumn()
    id:number; // 标记为主列，值自动生成

    @Column({
        type: "datetime",
        name:'create_time'
    })
    create_time: Date;

    @Column({
        type: "varchar",
        name:'name'
    })
    name: string;

    @Column({
        type: "int",
        name:'plotId'
    })
    plotId: number;
    @Column({
        type: "varchar",
        name:'rent'
    })
    rent: string;
    @Column({
        type: "varchar",
        name:'Payment'
    })
    Payment: string;
    @Column({
        type: "varchar",
        name:'Agencyfee'
    })
    Agencyfee: string;
    @Column({
        type: "varchar",
        name:'Securitydeposit'
    })
    Securitydeposit: string;
    @Column({
        type: "varchar",
        name:'Housetype'
    })
    Housetype: string;
    @Column({
        type: "varchar",
        name:'UsableArea'
    })
    UsableArea: string;
    @Column({
        type: "varchar",
        name:'floor'
    })
    floor: string;
    @Column({
        type: "varchar",
        name:'orientation'
    })
    orientation: string;
    @Column({
        type: "varchar",
        name:'description'
    })
    description: string;
    @Column({
        type: "varchar",
        name:'img'
    })
    img: string;
    @Column({
        type: "int",
        name:'agentId'
    })
    agentId: number;
}